cmake_minimum_required(VERSION 3.0.2)
project(formation_avoidance)

set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
add_definitions(-std=c++11 -g -O3 -ftree-vectorize -march=native)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
  roscpp
  message_filters
  #mav_msgs
  geometry_msgs
  sensor_msgs
  gazebo_msgs
  tf
  nav_msgs
)
set(Boost_LIBRARY_DIR /usr/lib/x86_64-linux-gnu/)
set(PCL_DIR "/home/pp/Downloads/pcl/cmake")
find_package(PCL REQUIRED )
find_package(OpenCV REQUIRED)

add_definitions(${PCL_DEFINITIONS})

catkin_package()

include_directories(${PCL_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
include_directories(${OpenCV_INCLUDE_DIRS})
include_directories(${PROJECT_SOURCE_DIR}/include)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})




add_executable(task src/task.cpp src/formation.cpp)
target_link_libraries(task ${OpenCV_LIBS} ${PCL_LIBRARIES} ${catkin_LIBRARIES} )


